package com.nanyang.tms.api.dto.request.saleprice.add;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>Description:(成本价格重量模板信息表)</p>
 *
 * @author lv
 * @date 2022年11月12日 下午04:53:19
 * @Copyright Copyright (c) 2020 www.nanyang.cn Inc. All rights reserved.
 */
@Data
public class SaleWeightAddRequest implements Serializable {


    /**
     * 模板名称
     */
    @NotEmpty(message = "重量模板名称不能为空")
    @Length(max = 50, message = "weightName长度需小于50个字符")
    private String weightName;

    /**
     * 备注
     */
    @Length(max = 200, message = "remark长度需小于200个字符")
    private String remark;

    /**
     * 模板记录列表
     */
    @Valid
    @NotNull(message = "saleWeightRecordAddRequestList不能为空")
    private List<SaleWeightRecordAddRequest> saleWeightRecordAddRequestList;
}